<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>helloworld</title>
    <script src="../assets/js/vue.js"></script>
</head>

<body>
    <h1>helloworld</h1>
    <hr>
    <div id="app">
            <lifeng>
                <span slot="bolgUrl">{{lfData.bolgUrl}}</span>
                <span slot="netName">{{lfData.netName}}</span>
                <span slot="skill">{{lfData.skill}}</span>
            </lifeng>
    </div>
    <template id="tmp">
        <div>
            <p>博客地址：<slot name="bolgUrl"></slot></p>
            <p>博主：<slot name="netName"></slot></p>
            <p>技术类型：<slot name="skill"></slot></p>
        </div>
    </template>
</body>
<script>
    var lifeng = {
        template: "#tmp"
    }
    var app = new Vue({
        el: "#app",
        data: {
            lfData: {
                bolgUrl: 'http://jspang.com',
                netName: '技术胖',
                skill: 'Web前端'
            }
        },
        components:{
            "lifeng":lifeng
        }
    })
</script>

</html>